<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>跳转中</title>
    <script src="http://libs.baidu.com/jquery/2.1.4/jquery.min.js"></script>
</head>
<body>
<script type="text/javascript">
    function proxyLogin(askurl, askData, okurl) {
        var killAjax = true;
     setTimeout(function() {
         checkajaxkill();
     }, 30000);
        var ajaxCall = $.getJSON(askurl + "?callback=?", {askData:askData}, function(d){
            killAjax = false;
            if(d.msg == "-1"){
                window.location.href = "/logout";
            }else{
                $.post(okurl, {replyTxt:d.msg} , function(e) {
                    window.location.href = e.returl;
                }, "json");
            }
        });
     function checkajaxkill(){
         if(killAjax){
             ajaxCall.abort();
             //超时退出并返回登录
             window.location.href = "/logout";
         }
     }
}
    proxyLogin("${askurl}", "${askData}", "${okurl}","${ssoLoginUrl}");
</script>
</body>
</html>